package com.sen.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sen.model.entity.BmsPost;
import com.sen.model.entity.BmsTag;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 * 标签表 服务类
 * </p>
 *
 * @author ergou
 * @since 2021-04-12
 */
public interface BmsTagService extends IService<BmsTag> {

    /**
     * 插入标签
     *
     * @param tags
     * @return
     */
    List<BmsTag> insertTags(List<String> tags);

    /**
     * 获取标签关联话题
     *
     * @param topicPage
     * @param id
     * @return
     */
    Page<BmsPost> selectTopicsByTagId(Page<BmsPost> topicPage, String id);
}
